<template>
  <!-- 组件的结构 -->
  <div class="school">
    <h2>学校名称:{{ name | mySlice }}</h2>
    <h2>学校地址:{{ address }}</h2>
    <button @click="dianji">点我测试一下hello</button>
  </div>
</template>

<script>
export default {
  name: "School",
  data() {
    return {
      name: "尚硅谷heima",
      address: "北京昌平",
    };
  },
  methods: {
    dianji() {
      this.hello();
    },
  },
};
</script>
